package com.gem.service;

import com.gem.domain.CDailySpending;
import com.gem.util.ConditionUtil;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author Apolar_GuanYH-管阳红
 * Description: 日常经费服务接口
 * create 2019-10-19 19:51
 * Modified By:
 */
public interface CDailySpendingService {

    //查询所有
    List<CDailySpending> selectAllDS();

    //查询所有市场的
    List<CDailySpending> selectDSForMarketService();

    //按Uid查询
    List<CDailySpending> selectDSByUidService(Integer uId);

    //添加
    boolean addDSService(CDailySpending CDailySpending);

    //修改
    boolean modifyDSService(CDailySpending CDailySpending);

    //按编号查询
    CDailySpending selectDSByIdService(Integer dsId);

    //删除
    boolean deleteDSByIdService(Integer dsId);

    //批量删除（开启事务）
    boolean deleteDSByIdsService(String[] dsIdArr);

    //分页显示
    PageInfo<CDailySpending> selectDSByPage(int currentPage, int pageSize, HttpSession session);

    //手机端分页显示
    PageInfo<CDailySpending> selectDSByPageM(int currentPage, int pageSize, HttpSession session);

    //查询分页显示
    PageInfo<CDailySpending> selectDSByConditionByPage(int currentPage, int pageSize, ConditionUtil cu, HttpSession session);

    //手机端查询分页显示
    PageInfo<CDailySpending> selectDSByConditionByPageM(int currentPage, int pageSize, ConditionUtil cu, HttpSession session);

    //上传文件
    boolean uploadExcelService(List<CDailySpending> list);
}
